Method, system, device and computer program for mutual authentication and content protection

ABSTRACT

A data processing device  10  is composed of a data storage unit  11  that stores first authentication data, second medium authentication data generated by applying a predetermined encryption to the first medium authentication data, and second device authentication data generated by applying the predetermined encryption to first device authentication data; a medium authentication data transmission unit  12  transmits the first medium authentication data; an encrypted data reception unit  13  receives first encrypted data; an authentication unit  14  authenticates an information recording medium  30  when the first encrypted data and the second medium authentication data are identical; a device authentication data reception unit  15  receives the first device authentication data; and a device authentication data transmission unit  16  transmits the second device authentication data. Mutual authentication processing can be performed without the data processing device having a unit for encrypting, and by using data each time. Developers of various types of software can perform data transfer operation checking, debugging and the like without the risk of secret information being leaked.

TECHNICAL FIELD

[0001] The present invention relates to a data processing system in which mutual authentication takes place between a recording medium and a data processing device for the purpose of protecting digital works, and in particular to a technique that enables checking of operations and debugging of application software during development of the software, while preventing secret information being leaked in mutual authentication.

BACKGROUND ART

[0002] In recent years it has become common for digital data such as documents, audio, images and computer programs to be circulated via networks such as the Internet, and portable recording mediums such as CDs (compact disks). Such digital data does not deteriorate over time and anyone can easily copy it without loss of quality. Consequently, however, a disadvantage of such, digital data is that copyrighted information is easily subject to illegal acts such as unauthorized copying and tampering.

[0003] Digital work protection systems that prevent such illegal acts are disclosed in Japanese laid-open patent application 2000-307567 and Japanese laid-open patent application 2001-211162.

[0004] In these digital work protection systems, a recording medium stores restriction information that shows copy restrictions and so on of the digital data, while a data processing device is able to restrict the number of generations of copies made of the digital data by either prohibiting copying or restricting the number of times the digital data is copied, according to the restriction information recorded on the recording medium. Furthermore, the recording medium and the data processing device perform authentication to authenticate each other's authenticity (hereinafter “mutual authentication processing”)before digital data is transmitted. Transmission of useful data is not permitted when legitimacy is not mutually authenticated. This prevents restriction information being invalidated by an illegitimate apparatus.

[0005] In the mutual authentication processing, both the recording medium and the data processing device have the same secret encryption processing method. Each device independently generates a random number, transmits the generated random number to the other device, has the other device encrypt the random number and transmit the encrypted number back. The device that generated the random number also encrypts the random number that it generated and compares the result with the received random number. If the two are identical, the device authenticates the other device as being a legitimate device.

[0006] Note that the random number used in this kind of mutual authentication processing is usually a pseudo-random number is generated using a seed such as the current time.

[0007] In this way, it is a prerequisite in mutual authentication processing for both devices to have the same secret encryption

[0008] To solve this problem, the object of the present invention is to provide a data processing system, a data processing method, a recording medium and a data processing device that are part of the data processing system, a data processing program for use in the data processing device, and a program recording medium on which the data processing program is recorded that enable data transfer operation checking, debugging and the like in mutual authentication processing, even if the encryption method is unknown to one of the parties.

DISCLOSURE OF THE INVENTION

[0009] A data processing system of the present invention is a data processing system that includes a data processing device and a recording medium that perform mutual authentication, and permits transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the data processing device including: a medium authentication data storage unit operable to store first medium authentication data, and second medium authentication data generated by applying a predetermined encryption to the first medium authentication data; a medium authentication data transmission unit operable to transmit the first medium authentication data to the recording medium; an encrypted data reception unit operable to receive first encrypted data that has been generated by the recording medium by applying an encryption included in the recording medium to the transmitted first medium authentication data; a medium authentication unit operable to judge whether the received first encrypted data and the stored second medium authentication data are identical, and when the judgement is positive, authenticate the recording medium as being legitimate; a first device authentication data reception unit operable to receive first device authentication data from the recording medium; a device authentication data storage unit operable to store second device authentication data generated by applying the predetermined encryption to the first device authentication data; and a second device authentication data transmission unit operable, when the first device authentication data reception unit receives the first device authentication data, to transmit the stored second device authentication data to the recording medium; and the recording medium including: a medium authentication data reception unit operable to receive the first medium authentication data from the data processing device; a first encryption unit operable to generate the first encrypted data by applying the encryption included in the recording medium to the received first medium authentication data; an encrypted data transmission unit operable to transmit the generated first encrypted data to the data processing device; a device authentication data output unit operable to output the first device authentication data; a first device authentication data transmission unit operable to transmit the output first device authentication data to the data processing device; a second encryption unit operable to generate second encrypted data by applying the encryption to the output first device authentication data; a second device authentication data reception unit operable to receive the second device authentication data from the data processing device; and a device authentication unit operable to judge whether the received second device authentication data and the generated second encrypted data are identical, and when the judgement is positive, authenticate the data processing device as being legitimate. Furthermore, a data processing system of the present invention is a data processing system that includes a data processing device and a recording medium that perform mutual authentication, and permits transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the data processing device including: a first medium authentication data storage unit operable to store first medium authentication data, and second medium authentication data generated by applying a predetermined encryption to the first medium authentication data; a first medium authentication data transmission unit operable to transmit the first medium authentication data to the recording medium; a first medium authentication data reception unit operable to receive third medium authentication data generated by applying a predetermined encryption to the first medium authentication data from the recording medium; a medium authentication unit operable to judge whether the received third medium authentication data and the stored second medium authentication data are identical, and when the judgement is positive, authenticate the recording medium as being legitimate; a first device authentication data reception unit operable to receive first device authentication data from the recording medium; a first device authentication data storage unit operable to store second device authentication data generated by applying the predetermined encryption to the first device authentication data; and a second device authentication data transmission unit operable, when the first device authentication data reception unit receives the first device authentication data, to transmit the second device authentication data to the recording medium; and the recording medium including: a second medium authentication data reception unit operable to receive the first medium authentication data from the data processing device; a second medium authentication data storage unit operable to store the third authentication data; a second medium authentication data transmission unit operable, when the second medium authentication data reception unit receives the first medium authentication data, to transmit the third medium authentication data to the data processing device; a second device authentication data storage unit operable to store the first device authentication data, and third device authentication data that has been generated by applying the predetermined encryption to the first device authentication data; a first device authentication data transmission unit operable to transmit the stored first device authentication data to the data processing device; a second device authentication data reception unit operable to receive the second device authentication data from the data processing device; and a device authentication unit operable to judge whether the received second device authentication data and the stored third device authentication data are identical, and when the judgement is positive, authenticate the data processing device as being legitimate.

[0010] According to the stated structures, mutual authentication processing can be performed without the data processing device having a unit for encrypting, and by using the same data each time.

[0011] Consequently, developers of various types of software can perform data transfer operation checking, debugging and the like without the risk of secret information being leaked to other developers.

[0012] Furthermore, the recording medium may further include: a counting unit operable to store a number of times that mutual authentication processing has been executed; and a usage count restriction unit operable to judge whether the number stored by the counting unit has reached a predetermined number, and, when the judgement is positive, stop mutual authentication processing and prohibit transfer of the useful data, and when the judgement is negative, have the mutual authentication processing continue.

[0013] According to the stated structure, data transfer is not permitted when the count reaches a predetermined number, therefore the recording medium can prevent illegitimate, general use of larger amounts of data when the information recording medium is in a state for operation checking, debugging and the like, by setting the predetermined number to a relatively small number.

[0014] Furthermore, the recording medium may be portable and be mounted in the data processing device by a user, and the counting unit may reset the number each time the recording medium is mounted in the data processing device.

[0015] According to the stated structure, continuous data transfer is not permitted unless the recording medium is remounted in the data processing device. Therefore, if the amount of data that can be transferred continuously is set to an amount that is greater than an amount necessary for operation checking, debugging and the like during development of various types of software but that is insufficient for normal use of music data, operation checking, debugging and the like can be performed numerous times while illegitimate use of normal music data can be prevented.

[0016] Furthermore, the counting unit may reset the number each time predetermined data is received from the data processing device.

[0017] According to the stated structure, continuous data transfer is not permitted unless the recording medium receives predetermined data. Therefore, if the amount of data that can be transferred continuously is set to an amount that is greater than an amount necessary for operation checking, debugging and the like during development of various types of software but that is insufficient for normal use of music data, operation checking, debugging and the like can be performed numerous times while illegitimate use of normal music data can be prevented.

[0018] Furthermore, the recording medium may be portable and be mounted in the data processing device by a user, and the device authentication data output unit may output predetermined data as the first device authentication data each time the recording medium is mounted in the data processing device. Furthermore, the recording medium may be portable and be mounted in the data processing device by a user, and the first device authentication data transmission unit may transmit the stored first device authentication data to the data processing device each time the recording medium is mounted in the data processing device.

[0019] According to the stated structure, device authentication is started each time the recording medium is mounted in the data processing device, therefore the risk that an illegitimate device will masquerade as a legitimate device is low.

[0020] Here, the recording medium may further include: a switch unit that is set to either a first state or a second state by a user, and the device authentication data output unit, when the switch unit is in the first state, may output predetermined data as the first device authentication data, and when the switch unit is in the second state, output a random number each time as the first device authentication data, the random number being different each time.

[0021] According to the stated structure, the recording medium can be adapted for normal use and for use in operation checking, debugging and the like during development of various types of software, by switching the switch.

[0022] Furthermore, the device authentication data output unit may output predetermined data as the first device authentication data each time predetermined data is received from the data processing device.

[0023] According to the stated structure, device authentication starts each time predetermined data is received, therefore device authentication can be started arbitrarily, and a test program can be used for operation checking.

[0024] Furthermore, the predetermined data may be one of (a) a pseudo-random number that is generated using a predetermined initial value as a seed, (b) a predetermined random number, (c) a random number selected according to command data from the data processing device, (d) a number designated according to command data from the data processing device, and (e) a sequential number. Furthermore, the stored first device authentication data may be one of (a) a pseudo-random number that is generated using a predetermined initial value as a seed, (b) a predetermined random number, (c) a random number selected according to command data from the data processing device, (d) a number designated according to command data from the data processing device, and (e) a sequential number.

[0025] According to the stated structure, the device authentication data output unit can be used in normal mutual authentication as a pseudo-random number generation unit, a storage unit, or a reception unit.

[0026] A data processing method of the present invention is a data processing method that performs mutual authentication between a data processing device and a recording medium, and permits transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the data processing device including a medium authentication data storage unit operable to store first medium authentication data, and second medium authentication data generated by applying a predetermined encryption to the first medium authentication data; and a device authentication data storage unit operable to store second device authentication data generated by applying the predetermined encryption to first device authentication data, the data processing method including: a medium authentication data transfer step of transferring the first medium authentication data to the recording medium; a first encryption step of, in the recording medium, generating first encrypted data by applying an encryption included in the recording medium to the transferred first medium authentication data; an encrypted data transfer step of transferring the generated first encrypted data to the data processing device; a medium authentication step of, in the data processing device, judging whether the transferred first encrypted data and the stored second medium authentication data are identical, and when the judgement is positive, authenticating the recording medium as being legitimate; a device authentication data output step of, in the recording medium, outputting the first device authentication data; a first device authentication data transfer step of transferring the output first device authentication data to the data processing device; a second encryption step of, in the recording medium, generating second encrypted data by applying the encryption included in the recording medium to the output first device authentication data; a second device authentication data transfer step of, when the first device authentication data has been transferred by the first device authentication data transfer step, transferring the stored second device authentication data to the recording medium; and a device authentication step of, in the recording medium, judging whether the transferred second device authentication data and the generated second encrypted data are identical, and when the judgement is positive, authenticating the data processing device as being legitimate. Furthermore, a data processing method of the present invention is a data processing method that performs mutual authentication between a data processing device and a recording medium, and permits transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the data processing device including a first medium authentication data storage unit operable to store first medium authentication data, and second medium authentication data generated by applying a predetermined encryption to the first medium authentication data; and a first device authentication data storage unit operable to store second device authentication data generated by applying the predetermined encryption to first device authentication data, the recording medium including a second medium data storage unit operable to store third medium authentication data generated by applying a predetermined encryption to the first medium authentication data; and a second device authentication data storage unit operable to store the first device authentication data, and third device authentication data generated by applying the predetermined encryption to the first device authentication data, the data processing method including: a first medium authentication data transfer step of transferring the stored first medium authentication data to the recording medium; a second medium authentication data transfer step of, when the first medium authentication data has been transferred, transferring the stored third medium authentication data to the data processing device; a medium authentication step of, in the data processing device, judging whether the transferred third medium authentication data and the stored second medium authentication data are identical, and when the judgement is positive, authenticating the recording medium as being legitimate; a first device authentication data transfer step of transferring the stored first device authentication data to the data processing device; a second device authentication data transfer step of, when the first device authentication data has been transferred, transferring the stored second device authentication data to the recording medium; and a device authentication step of, in the recording medium, judging whether the transferred second device authentication data and the stored third device authentication data are identical, and when the judgement is positive, authenticating the data processing device as being legitimate.

[0027] The data processing device of the present invention is a data processing device in a data processing system in which the data processing device and a recording medium perform mutual authentication, the data processing system permitting transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the data processing device including: a medium authentication data storage unit operable to store first medium authentication data, and second medium authentication data generated by applying a predetermined encryption to the first medium authentication data; a medium authentication data transmission unit operable to transmit the first medium authentication data to the recording medium; an encrypted data reception unit operable to receive first encrypted data that has been generated by the recording medium by applying an encryption included in the recording medium to the transmitted first medium authentication data; a medium authentication unit operable to judge whether the received first encrypted data and the stored second medium authentication data are identical, and when the judgement is positive, authenticate the recording medium as being legitimate; a first device authentication data reception unit operable to receive first device authentication data from the recording medium; a device authentication data storage unit operable to store second device authentication data generated by applying the predetermined encryption to the first device authentication data; and a second device authentication data transmission unit operable, when the first device authentication data reception unit receives the first device authentication data, to transmit the stored second device authentication data to the recording medium. Furthermore, a data processing device of the present invention is a data processing device in a data processing system in which the data processing device and a recording medium perform mutual authentication, the data processing system permitting transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the data processing device including: a first medium authentication data storage unit operable to store first medium authentication data, and second medium authentication data generated by applying a predetermined encryption to the first medium authentication data; a first medium authentication data transmission unit operable to transmit the first medium authentication data to the recording medium; a first medium authentication data reception unit operable to receive third medium authentication data generated by applying a predetermined encryption to the first medium authentication data from the recording medium; a medium authentication unit operable to judge whether the received third medium authentication data and the stored second medium authentication data are identical, and when the judgement is positive, authenticate the recording medium as being legitimate; a first device authentication data reception unit operable to receive first device authentication data from the recording medium; a first device authentication data storage unit operable to store second device authentication data generated by applying the predetermined encryption to the first device authentication data; and a second device authentication data transmission unit operable, when the first device authentication data reception unit receives the first device authentication data, to transmit the second device authentication data to the recording medium.

[0028] A data processing program of the present invention is a data processing program that executes in a data processing device a data processing method by which the data processing device and a recording medium perform mutual authentication, the data processing method permitting transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the data processing device including a medium authentication data storage unit operable to store first medium authentication data, and second medium authentication data generated by applying a predetermined encryption to the first medium authentication data; and a device authentication data storage unit operable to store second device authentication data generated by applying the predetermined encryption to first device authentication data, the data processing program including: a medium authentication data transmission step of transmitting the first medium authentication data to the recording medium; an encrypted data reception step of receiving first encrypted data that has been generated by the recording medium by applying an encryption included in the recording medium to the transmitted first medium authentication data; a medium authentication step of judging whether the received first encrypted data and the stored second medium authentication data are identical, and when the judgement is positive, authenticating the recording medium as being legitimate; a first device authentication data reception step of receiving the first device authentication data from the recording medium; and a second device authentication data transmission step of, when the first device authentication data reception unit receives the first device authentication data, transmitting the stored second device authentication data to the recording medium. Furthermore, a data processing program of the present invention is a data processing program that executes in a data processing device a data processing method by which the data processing device and a recording medium perform mutual authentication, the data processing method permitting transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the data processing device including a medium authentication data storage unit operable to store first medium authentication data, and second medium authentication data generated by applying a predetermined encryption to the first medium authentication data; and a device authentication data storage unit operable to store second device authentication data generated by applying the predetermined encryption to first device authentication data, the data processing program including: a first medium authentication data transmission step of transmitting the first medium authentication data to the recording medium; a first medium authentication data reception step of receiving third medium authentication data generated by applying a predetermined encryption to the first medium authentication data from the recording medium; a medium authentication step of judging whether the received third medium authentication data and the stored second medium authentication data are identical, and when the judgement is positive, authenticating the recording medium as being legitimate; a first device authentication data reception step of receiving the first device authentication data from the recording medium; and a second device authentication data transmission step of, when the first device authentication data reception unit receives the first device authentication data, transmitting the second device authentication data to the recording medium.

[0029] The program recording medium on which a data processing program of the present invention is recorded is a computer-readable program recording medium having recorded thereon a data processing program that executes on a computer a data processing method by which a data processing device and a recording medium perform mutual authentication, the data processing method permitting transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the data processing device including a medium authentication data storage unit operable to store first medium authentication data, and second medium authentication data generated by applying a predetermined encryption to the first medium authentication data; and a device authentication data storage unit operable to store second device authentication data generated by applying the predetermined encryption to first device authentication data, the data processing program including: a medium authentication data transmission step of transmitting the first medium authentication data to the recording medium; an encrypted data reception step of receiving first encrypted data that has been generated by the recording medium by applying an encryption included in the recording medium to the transmitted first medium authentication data; a medium authentication step of judging whether the received first encrypted data and the stored second medium authentication data are identical, and when the judgement is positive, authenticating the recording medium as being legitimate; a first device authentication data reception step of receiving the first device authentication data from the recording medium; and a second device authentication data transmission step of, when the first device authentication data reception unit receives the first device authentication data, transmitting the stored second device authentication data to the recording medium. Furthermore, the program recording medium on which a data processing program of the present invention is recorded is a computer-readable program recording medium having recorded thereon a data processing program that executes on a computer a data processing method by which a data processing device and a recording medium perform mutual authentication, the data processing method permitting transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the data processing device including a medium authentication data storage unit operable to store first medium authentication data, and second medium authentication data generated by applying a predetermined encryption to the first medium authentication data; and a device authentication data storage unit operable to store second device authentication data generated by applying the predetermined encryption to first device authentication data, the data processing program including: a first medium authentication data transmission step of transmitting the first medium authentication data to the recording medium; a first medium authentication data reception step of receiving third medium authentication data generated by applying a predetermined encryption to the first medium authentication data from the recording medium; a medium authentication step of judging whether the received third medium authentication data and the stored second medium authentication data are identical, and when the judgement is positive, authenticating the recording medium as being legitimate; a first device authentication data reception step of receiving the first device authentication data from the recording medium; and a second device authentication data transmission step of, when the first device authentication data reception unit receives the first device authentication data, transmitting the second device authentication data to the recording medium.

[0030] A recording medium of the present invention is a recording medium in a data processing system in which a data processing device and the recording medium perform mutual authentication, the data processing system permitting transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the recording medium including: a medium authentication data reception unit operable to receive first medium authentication data from the data processing device; a first encryption unit operable to generate first encrypted data by applying encryption included in the recording medium to the received first medium authentication data; an encrypted data transmission unit operable to transmit the generated first encrypted data to the data processing device; a device authentication data output unit operable to output first device authentication data; a first device authentication data transmission unit operable to transmit the output first device authentication data to the data processing device; a second encryption unit operable to generate second encrypted data by applying the encryption to the output first device authentication data; a second device authentication data reception unit operable to receive second device authentication data from the data processing device; and a device authentication unit operable to judge whether the received second device authentication data and the generated second encrypted data are identical, and when the judgement is positive, authenticate the data processing device as being legitimate. Furthermore, a recording medium of the present invention is a recording medium in a data processing system in which a data processing device and the recording medium perform mutual authentication, the data processing system permitting transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the recording medium including: a second medium authentication data reception unit operable to receive first medium authentication data from the data processing device; a second medium authentication data storage unit operable to store third medium authentication data; a second medium authentication data transmission unit operable, when the second medium authentication data reception unit receives the first medium authentication data, to transmit the third medium authentication data to the data processing device; a second device authentication data storage unit operable to store first device authentication data, and third device authentication data that has been generated by applying the predetermined encryption to the first device authentication data; a first device authentication data transmission unit operable to transmit the stored first device authentication data to the data processing device; a second device authentication data reception unit operable to receive second device authentication data from the data processing device; and a device authentication unit operable to judge whether the received second device authentication data and the stored third device authentication data are identical, and when the judgement is positive, authenticate the data processing device as being legitimate.

[0031] According to the stated structures, mutual authentication processing can be performed without the data processing device having a unit for encrypting, and by using the same data each time.

[0032] Consequently, developers of various types of software can perform data transfer operation checking, debugging and the like without the risk of secret information being leaked to other developers.

BRIEF DESCRIPTION OF THE DRAWINGS

[0033]FIG. 1 shows an outline of a data processing system of a first embodiment of the present invention;

[0034]FIGS. 2A to 2C show an example of a file name and file structure of data that is stored in the data storage unit 11 and that is for data transfer, mutual authentication processing, etc.;

[0035]FIG. 3 shows an example of a screen displayed on a monitor when an authentication unit 14 does not authenticate an information recording medium 30 as being legitimate;

[0036]FIG. 4 shows operations for mutual authentication processing during operation checking, debugging and the like in the data processing system of the first embodiment of the present invention;

[0037]FIG. 5 shows an outline of a data processing system of a second embodiment of the present invention;

[0038]FIG. 6 shows operations for mutual authentication processing during operation checking, debugging and the like in the data processing system of the second embodiment of the present invention;

[0039]FIG. 7 shows an outline of a data processing system of a third embodiment of the present invention;

[0040]FIG. 8 shows operations for mutual authentication processing during operation checking, debugging and the like in the data processing system of the third embodiment of the present invention;

[0041]FIG. 9 shows an outline of a data processing system of a fourth embodiment of the present invention;

[0042]FIG. 10 shows operations for mutual authentication processing during operation checking, debugging and the like in the data processing system of the fourth embodiment of the present invention;

[0043]FIG. 11 shows an outline of a data processing system of a fifth embodiment of the present invention;

[0044]FIG. 12 shows operations for mutual authentication processing during operation checking, debugging and the like in the data processing system of the fifth embodiment of the present invention;

[0045]FIG. 13 shows an outline of a data processing system of a sixth embodiment of the present invention; and

[0046]FIG. 14 shows operations for mutual authentication processing during operation checking, debugging and the like in the data processing system of the sixth embodiment of the present invention.

BEST MODE FOR CARRYING OUT THE INVENTION

[0047] First Embodiment

[0048] <Outline>

[0049] The first embodiment of the present invention is a system in which mutual authentication processing is performed between a personal computer and a memory card, and use of data is permitted only when the personal computer and the memory card authenticate each other as being legitimate. The system is for use in operation checking, debugging and the like during development of various types of software. Instead of having a program for performing encryption processing in mutual authentication, the personal computer stores in advance fixed authentication data and encrypted data that has been encrypted by applying the encryption processing that is used in mutual authentication to the authentication data. The authentication data and the encrypted data are used each time mutual authentication processing is performed.

[0050] <Structure>

[0051]FIG. 1 shows an outline of the data processing system of the first embodiment of the present invention.

[0052] The data processing system shown in FIG. 1 includes a data processing device 10, a connection device 20 and an information recording medium 30.

[0053] The data processing device 10 is, for example, a general-purpose computer such as a personal computer that executes software for operation checking, debugging, and the like, and includes a data storage unit 11, a medium authentication data transmission unit 12, an encrypted data reception data unit 13, an authentication unit 14, a device authentication data reception unit 15 and a device authentication data transmission unit 16.

[0054] Specifically, the data storage unit 11 is, for example, a hard disk in the personal computer. The medium authentication data transmission unit 12, the encrypted data reception data unit 13, the device authentication data reception unit 15 and the device authentication data transmission unit 16 are, for example, software in the personal computer such as drivers. The authentication unit 14 is, for example, application software that operates in the personal computer.

[0055] The connection device 20 is, for example, a card slot for a memory card, and is connected fixedly to the data processing apparatus 10. A memory card that has been selected for use can be mounted in the connection device 20 easily and quickly, and data transmission performed according to software such as firmware incorporated into integrated circuits. Here, the information recording medium 30 is mounted in the connection device 20.

[0056] The information recording medium 30 is, for example, an SD memory card, and includes a semiconductor memory and a CPU. The information recording medium 30 is an intelligent memory card that includes a rights protection function that permits data transmission between the semiconductor memory and an external device on the condition that mutual authentication processing is established. The information recording medium 30 includes a recording medium authentication data reception unit 31, a first encryption unit 32, an encrypted data transmission unit 33, a random number generation unit 34, a random number transmission unit 35, a second encryption unit 36, a device authentication data reception unit 37 and an authentication unit 38.

[0057] The data storage unit 11 stores data for mutual authentication processing and for data transmission. The data stored by the data storage unit 11 includes first medium authentication data, second medium authentication data (V′2) and second device authentication data (V1). The second medium authentication data is generated by applying a predetermined encryption processing to the first medium authentication data. The second device authentication data is generated by applying the predetermined encryption processing to first device authentication data. The data is, for example, stored in the hard disk as file data.

[0058] The first medium authentication data and the first device authentication data are each, for example, a 56-bit or a 64-bit random number. The predetermined encryption processing converts the 56-bit or 64-bit data to different 64-bit data. Since it is necessary to use a conversion method that cannot be analyzed from the original data and the data that results from conversion, an F function used in the DES decryption method is preferable because it is not reversible. Here, the first medium authentication data for operation checking, debugging and the like is referred to as random number A (R_a), and the first device authentication data for operation checking, debugging and the like is referred to as random number B (R_b).

[0059] Furthermore, here in the predetermined encryption processing the original data is calculated with unique information (K_a) using calculation processing (E_a). If the original data is the random number A (R_a), the second medium authentication data (V′2) can be expressed as:

second medium authentication data (V′2)=E_a (K_a, R_a).  (expression 1)

[0060] If the original data is the random number B (R_b), the second device authentication data (V1) can be expressed as:

second device authentication data (V1)=E_a (K_a, R_b).  (expression 2)

[0061]FIGS. 2A to 2C show an example of the file name and file structure of data for data transmission and for mutual authentication processing stored in the data storage unit 11.

[0062] As FIG. 2A shows, the file name of the data for transmission and for mutual authentication processing includes various types of information: a processing order 101, a command name 102, a data attribute 103, a data size 104 and a data offset 105.

[0063] Specifically, as shown in FIG. 2B, the file name of the data for transmission and for mutual authentication processing is composed of a processing order “2”, a command name “COM1”, a data file attribute “PPP”, a data size “20 sectors” and data offset “20 sectors”. Here “BIN” is a file extension.

[0064] Furthermore, as shown in FIG. 2C the data file for transmission and for mutual authentication processing is composed of a calculation data area 111 and a data area 112. The calculation data area 111 stores data for mutual authentication processing, such as the number of times mutual authentication processing has been executed and the result of the mutual authentication processing. This data is stored either in one file or divided into a plurality of files. The data area 112 stores data for data transmission with the information recording medium 30.

[0065] Each time the information recording medium 30 is mounted in the connection device 20, before data is transmitted, and each time a pre-determined input (hereinafter referred to as an “authentication processing start command”) is received from the user, the medium authentication data transmission unit 12 judges whether the number of times mutual authentication processing has been executed (hereinafter referred to as a “mutual authentication processing count”) has reached a predetermined number. If the predetermined number has been reached, the medium authentication data transmission unit 12 notifies the user to this effect and ends the processing. If the predetermined number has not been reached, the medium authentication data transmission unit 12 transmits the random number A (R_a) stored in the data storage unit 11 to the information recording medium 30.

[0066] Suppose, for example, that the mutual authentication processing count is to be reset each time the information recording medium is mounted in the connection device or every time a file is accessed, and mutual authentication processing is counted each time data of approximately one to two kilobytes is accessed. Here the predetermined number in the random number generation unit 52 needs to be at least 6 in order to include issuing of one write command in write processing and one read command in read processing for each of the head part, the intermediate part and the end part of the area for which operation checking, debugging and the like is to be performed. However, realistically it is appropriate to set the predetermined number to several tens of times, and preferably to a number that is less than the number of times necessary for mutual authentication for normal use of music data.

[0067] The encrypted data reception unit 13 receives the random number A (R_a) sent by the medium authentication data transmission unit 12 in the information recording medium 30, and receives the first encrypted data (V2) that has been generated by applying the encryption processing in the information recording medium 30 to the random number A (R_a), from the information recording medium 30.

[0068] The authentication unit 14 uses comparison processing (C_a) to compare the first encrypted data (V2) received by the encrypted data reception unit 13 and the second medium authentication data (V′2) stored in the data storage area 11 and judge whether the two pieces of data are identical or not. When the two pieces of data are identical, the authentication unit 14 authenticates the information recording medium 30 as being legitimate. When the two pieces of data are not identical, the authentication unit 14 does not authenticate the information recording medium 30 as being legitimate, but instead the system notifies the user that mutual device authentication failed, where the mutual authentication failed, and other information, then ends the processing.

[0069]FIG. 3 shows one example of a screen displayed by the monitor when the information recording medium 30 is not authenticated as being legitimate by the authentication unit 14.

[0070] The authentication unit 14 also updates mutual authentication processing data stored in the data storage unit 11, such as the mutual authentication processing count and the mutual authentication processing result.

[0071] The device authentication data reception unit 15 receives the first device authentication data from the information recording medium 30, and during operation checking, debugging and soon, receives the random number B (R_b) as the first device authentication data during operation checking, debugging and the like.

[0072] When the first device authentication data is received by the device authentication data reception unit 15, the device authentication data transmission unit 16 transmits the second device authentication data (V1) stored in the data storage unit 11 to the information recording medium 30.

[0073] The medium authentication data reception unit 31 receives the first medium authentication data from the data processing device 10, and during operation checking, debugging and the like, receives the random number A (R_a) as the first medium authentication data.

[0074] The first encryption unit 32 generates the first encrypted data (V2) by applying encryption processing to the first medium authentication data received by the medium authentication data reception unit 31. Here, in the encryption processing the original data is calculated with unique information (K_b) using calculation processing (E_b). In operation checking, debugging and the like the original data is the random number A (R_a), therefore the first encrypted data (V2) can be expressed as:

first encrypted data (V2)=E_b (K_b, R_a).  (expression 3)

[0075] The encrypted data transmission unit 33 transmits the first encrypted data (V2) generated by the first encryption unit 32 to the data processing device 10.

[0076] The random number generation unit 34 generates a random number each time the information recording medium 30 is mounted in the connection device 20, before data is transmitted, and each time first medium authentication data is received by the medium authentication data reception unit 31. Here, the random number generation unit 34 is a pseudo-random number generation apparatus, and generates a 56 bits or 64 bit pseudo-random number using the number of seconds of the current time, each time the medium authentication data reception unit 31 receives first medium authentication data.

[0077] Furthermore, every time the information recording medium 30 is mounted in the connection device 20, the random number generation unit 34 generates a random number as a predetermined initial value of the random number seed, which it provides as the random number B (R_b).

[0078] Note that is it possible for the random number generation unit 34 to generate the random number as the predetermined initial value of the random number seed which it provides as the random number B (R_b) each time the random number A (R_a) is received by the medium authentication data reception unit 31 as the first medium authentication data, or each time special command data is transmitted from the data processing device 10 according to the user inputting predetermined content into the data processing device 10.

[0079] The random number transmission unit 35 transmits the random number generated by the random number generation unit 34 to the data processing device 10.

[0080] The second encryption unit 36 generates second encrypted data (V′1) by applying the same encryption method as the first encryption unit 32 to the random number generated by the random number generation unit 34. In operation checking, debugging and the like, the generated random number is the random number B (R_b), therefore the second encrypted data (V′1) can be expressed as:

second encrypted data (V′1)=E_b (K_b, R_b).  (expression 4)

[0081] The device authentication data reception unit 37 receives the second device authentication data (V1) from the data processing device 10.

[0082] The authentication unit 38 uses comparison processing (C_b) to compare the second device authentication data (V1) received from the device authentication data reception unit 37 and the second encrypted data (V′1) generated by the second encryption unit 36 and judge whether the two pieces of data are identical or not. When the two pieces of data are identical, the authentication unit 38 authenticates the data processing device 10 as being legitimate, and permits subsequent use of data.

[0083] Here, the comparison result in the authentication unit 14 in operation checking, debugging and the like can be expressed as:

comparison result=C_a (V2, V′2).

[0084] When the comparison result is that the two pieces of data are identical according to expression 1 and expression 3,

calculation processing (E_a)=calculation processing (E_b) and unique information (K_a)=unique information (K_b).

[0085] Here, the predetermined encryption processing applied to the second medium authentication data (V′2) stored in the data storage unit 11 and the encryption processing in the first encryption unit 32 are identical. Accordingly, the data processing device 10 authenticates the information recording medium 30 as being legitimate.

[0086] Furthermore, the comparison result in the authentication unit 38 in operation checking, debugging and the like can be expressed as:

comparison result=C_b (V1, V′1).

[0087] When the comparison result is that the two pieces of data are identical according to expression 2 and expression 4,

calculation processing (E_a)=calculation processing (E_b) and unique information (K_a) unique information (K_b).

[0088] Here, the predetermined encryption processing applied to the second device authentication data stored in the data storage unit 11 and the encryption processing in the second encryption unit 36 are identical. Accordingly, the information recording medium 30 authenticates the data processing device 10 as being legitimate.

[0089] <Operations>

[0090]FIG. 4 shows the operations for mutual authentication processing during operation checking, debugging and the like, in the data processing system in the first embodiment of the present invention.

[0091] The following describes operations for mutual authentication processing during operation checking, debugging and the like.

[0092] (1) Each time the information recording medium 30 is mounted in the connection device 20, before data is transmitted, and each time an authentication processing start command is received from the user, the medium authentication data transmission unit 12 judges whether mutual authentication processing count has reached the predetermined number. If the predetermined number has been reached, the system notifies the user to this effect and ends the processing (step S1).

[0093] (2) If the predetermined number has not been reached, the medium authentication data transmission unit 12 transmits the random number A (R_a) stored in the data storage unit 11 to the information recording medium that is mounted in the connection device 20 (step S2).

[0094] (3) The medium authentication data reception unit 31 receives the random number A (R_a) (step S3).

[0095] (4) The first encryption unit 32 generates the first encrypted data (V2) by applying encryption processing included in the first encryption unit 32 itself to the random number A (R_a) received by the medium authentication data reception unit 31 (step S4).

[0096] (5) The encrypted data transmission unit 33 transmits the first encrypted data (V2) generated by the first encryption unit 32 to the data processing device (step S5).

[0097] (6) The encrypted data reception unit 13 receives the first encrypted data (V2) from the information recording medium (step S6).

[0098] (7) The authentication unit 14 compares the first encrypted data (V2) received by the encrypted data reception unit 13 and the second medium authentication data (V′2) stored in the data storage area 11 and judges whether the two pieces of data are identical or not. When the two pieces of data are not identical, the system notifies the user that mutual device authentication failed, where the mutual authentication failed, and other information, then ends the processing (step S7).

[0099] (8) When the two pieces of data are identical, the authentication unit 14 authenticates the information recording medium as being legitimate, and updates the information stored in the storage unit 11 about mutual device authentication, such as the mutual authentication processing count and the mutual authentication processing result (step S8).

[0100] (9) The random number generation unit 34 generates the random number B (R_b) (step S9).

[0101] (10) The random number generation 35 transmits the random number B (K_b) generated by the random number generation unit 34 to the data processing device (step S10).

[0102] (11) The second encryption unit 36 generates second encrypted data (V′1) by applying the same encryption method as the first encryption unit 32 to the random number generated by the random number generation unit (step S11).

[0103] (12) The device authentication data reception unit 15 receives the random number B (R_b) from the information recording medium (step S12).

[0104] (13) The device authentication data transmission unit 16 transmits the second device authentication data (V1) stored in the data storage unit 11 to the information recording medium 30 (step S13).

[0105] (14) The device authentication data reception unit 37 receives the second device authentication data (V1) from the data processing device (step S14).

[0106] (15) The authentication unit 38 compares the second device authentication data (V1) received by the device authentication data reception unit 37 and the second encrypted data (V′1) generated by the second encryption unit 36 and judges whether the two pieces of data are identical or not. When the two pieces of data are not identical, the system notifies the user that mutual device authentication failed, where the mutual authentication failed, and other information, then ends the processing (step S15).

[0107] (16) When the two pieces of data are identical, the authentication unit 38 authenticates the data processing device as being legitimate, and permits subsequent use of data (step S16).

[0108] <Conclusion>

[0109] In this way, in the data processing system of the first embodiment of the present invention, the data processing device 10 using pre-stored fixed authentication data and encrypted data, and during operation checking, debugging and the like when developing software, mutual device authentication is performed using the same data each time. Therefore, developers of various types of software are able to check data transfer operations and the like without fear of secret information being leaked.

[0110] Second Embodiment

[0111] <Outline>

[0112] Similar to the first embodiment, in the system in the second embodiment of the present invention the personal computer, instead of having a program for performing encryption processing in mutual authentication, stores fixed authentication data and encrypted data that has been generated by encrypting the authentication data, and uses this data each time mutual authentication processing is performed. In addition to the features of the first embodiment, in the second embodiment the memory card includes a switch, and by switching the switch, the user is able to use the memory card for either operation checking, debugging and the like during development of various types of software, or for normal operations.

[0113] <Structure>

[0114]FIG. 5 shows an outline of the data processing system of the second embodiment of the present invention. The constitutional elements that are the same as those in the first embodiment have the same numbering thereas, and a description thereof is omitted.

[0115] The data processing system shown in FIG. 5 includes the data processing device 10, the connection device 20, and an information recording medium 40.

[0116] The information recording medium 40 is, for example, an SD memory card, and includes a semiconductor memory and a CPU. The information recording medium 40 is an intelligent memory card that includes a rights protection function that permits data transmission between the semiconductor memory and an external device on the condition that mutual authentication processing is established. The information recording medium 40 includes the medium authentication data reception unit 31, the first encryption unit 32, the encrypted data transmission unit 33, the random number generation unit 42, the random number transmission unit 35, the second encryption unit 36, the device authentication data reception unit 37, the authentication unit 38 and a switch unit 41.

[0117] The switch unit 41 includes a switch that is set by the user to either of two states. The user sets the switch to a first state for operation checking, debugging and the like during development of various types of software, and a second state for performing normal operations.

[0118] When the switch unit 41 is in the first state, each time first medium authentication data is received from the medium authentication data reception unit 31 the random number generation unit 42 generates a predetermined initial value as a random number seed, and uses the seed to generate a pseudo-random number which it supplies as a random number B (R_b). When the switch unit 41 is in the second state, the random number generation unit 42 generates a random number for device authentication each time the information recording medium 40 is mounted in the connection device 20, before data is transmitted, and each time first medium authentication data is transmitted by the medium authentication data reception unit 31.

[0119] <Operations>

[0120]FIG. 6 shows mutual authentication processing operations during operation checking, debugging and the like in the data processing system of the second embodiment of the present invention.

[0121] The following describes operations for mutual authentication processing during operation checking, debugging and the like. Steps that are the same as those shown in FIG. 4 in the first embodiment have the same numbering thereas, and a description thereof is omitted.

[0122] (1) to (8) are the same as (1) to (8) in the first embodiment (steps S1 to S8).

[0123] (9) The random number generation unit 42 judges whether the switch unit 41 is in the first state or the second state (step S21).

[0124] (10) When the switch unit 41 is in the second state, the random number generation unit 42 generates a random number for device authentication, and subsequently performs normal operations (step S22).

[0125] (11) When the switch unit 41 is in the first state, the random number generation unit 42 generates a random number B (R_b) (step S23).

[0126] (12) to (18) are the same as (10) to (16) in the first embodiment (steps S10 to S16).

[0127] <Conclusion>

[0128] As described, according to the second embodiment of the present invention, by switching the switch the information recording medium 40 can be used for either operation checking, debugging and the like during development of various types of software, or for normal operations.

[0129] Third Embodiment

[0130] <Outline>

[0131] Similar to the first embodiment, in system in the third embodiment of the present invention the personal computer, instead of having a program for performing encryption processing in mutual authentication, stores fixed authentication data and encrypted data that has been generated by encrypting the mutual authentication data, and uses this data each time mutual authentication processing is performed. In addition to the features of the first embodiment, in the third embodiment the memory card counts and stores the number of times that it performs mutual authentication processing, and the number of times that the memory card is used is restricted.

[0132] <Structure>

[0133]FIG. 7 shows an outline of the data processing system of the third embodiment of the present invention. The constitutional elements that are the same as those in the first embodiment have the same numbering thereas, and a description thereof is omitted.

[0134] The data processing system shown in FIG. 7 includes the data processing device 10, the connection device 20, and an information recording medium 50.

[0135] The information recording medium 50 is, for example, an SD memory card, and includes a semiconductor memory and a CPU. The information recording medium 50 is an intelligent memory card that includes a rights protection function that permits data transmission between the semiconductor memory and an external device on the condition that mutual authentication processing is established. The information recording medium 50 includes the medium authentication data reception unit 31, the first encryption unit 32, the encrypted data transmission unit 33, a random number generation unit 52, the random number transmission unit 35, the second encryption unit 36, the device authentication data reception unit 37, the authentication unit 38 and an authentication processing count unit 51.

[0136] The authentication processing count unit 51 stores the number of times that mutual authentication processing has been executed (hereinafter “pseudo-execution count”) in operation checking, debugging and the like during development of software.

[0137] The random number generation unit 52 generates a random number for device authentication each time the information recording medium 50 is mounted in the connection device 20, before data is transmitted, and each time first medium authentication data is transmitted by the medium authentication data reception unit 31.

[0138] Furthermore, each time a random number A (R_a) is received by the medium authentication data reception unit 31 as first medium authentication data, and each time special command data is transmitted from the data processing device 10 according to the user inputting predetermined content into the data processing device 10, the random number generation unit 52 judges whether the pseudo-execution count stored by the authentication processing count unit 51 has reached a predetermined number.

[0139] When the predetermined number has been reached, the system informs the user that the predetermined number for mutual authentication processing in operation checking, debugging and the like during development of various types of software has been reached, and ends the processing. When the predetermined number has not been reached, the random number generation unit 52 generates a predetermined initial value as a random number seed, uses the seed to generate a pseudo-random number which it supplies as a random number B (R_b), and updates the pseudo-execution count in the authentication processing count unit 51.

[0140] Note that the pseudo-execution count stored in the authentication processing count unit 51 may be used without being reset until reaching the predetermined number. Alternatively, the pseudo-execution count may be reset at a predetermined time, such as when the information recording medium 50 is mounted in the connection device 20, or may be reset according to special command data transmitted from the data processing device 10.

[0141] Suppose, for example, that the pseudo-execution count is to be reset each time the information recording medium is mounted in the connection device or every time a file is accessed, and pseudo-execution is counted each time a data of one to two kilobytes is accessed. Here the predetermined number in the random number generation unit 52 needs to be at least 6 in order to include issuing of one write command in write processing and one read command in read processing for each of the head part, the intermediate part and the end part of the area for which operation checking, debugging and the like is performed. However, realistically it is appropriate to set the predetermined number to several tens of times, and preferably to a number that is less than the number of times necessary for mutual authentication for normal use of music data.

[0142] <Operations>

[0143]FIG. 8 shows mutual authentication processing operations in the data processing system of the third embodiment of the present invention during operation checking, debugging and the like.

[0144] The following describes operations for mutual authentication processing during operation checking, debugging and the like. Steps that are the same as those shown in FIG. 4 in the first embodiment have the same numbering thereas, and a description thereof is omitted.

[0145] (1) to (8) are the same as (1) to (8) in the first embodiment (steps S1 to S8).

[0146] (9) The random number generation unit 52 judges whether the pseudo-execution count in the authentication processing count unit 51 has reached the predetermined number (step S31).

[0147] (10) When the predetermined number has been reached, the system informs the user that the predetermined number has been reached, and ends the processing (step S32).

[0148] (11) When the predetermined number has not been reached, the random number generation unit 52 generates a random number B (R_b), and updates the pseudo-execution count in the authentication processing count unit 51 (step S33).

[0149] (12) to (18) are the same as (10) to (16) in the first embodiment (steps S10 to S16).

[0150] <Conclusion>

[0151] As has been described, according to the third embodiment of the present invention, the information recording medium 50 has a pseudo-execution count, and ends the processing when a predetermined number has been reached. Therefore, by setting the predetermined number to a relatively small number, the recording medium can prevent larger amounts of data being put into general, illegitimate use when the information recording medium is in a state for operation checking, debugging and the like.

[0152] Fourth Embodiment

[0153] <Outline>

[0154] Similar to the first embodiment, in the system in the fourth embodiment of the present invention the personal computer, instead of having a program for performing encryption processing in mutual authentication, stores fixed authentication data and encrypted data that has been generated by encrypting the mutual authentication data, and uses this data each time mutual authentication processing is performed. In addition to the features of the first embodiment, in the fourth embodiment the number of times that mutual authentication processing is performed (pseudo-execution count) is counted by the memory card, and the number of times that the memory card is used is restricted. Furthermore, the memory card includes a switch, and by switching the switch, the user is able to use the memory card for either operation checking, debugging and the like during development of various types of software, or for normal operations.

[0155] <Structure>

[0156]FIG. 9 shows an outline of the data processing system of the fourth embodiment of the present invention. The constitutional elements that are the same as those in the first, second and third embodiments have the same numbering thereas, and a description thereof is omitted.

[0157] The data processing system shown in FIG. 9 includes the data processing device 10, the connection device 20, and an information recording medium 60.

[0158] The information recording medium 60 is, for example, an SD memory card, and includes a semiconductor memory and a CPU.

[0159] The information recording medium 60 is an intelligent memory card that includes a rights protection function that permits data transmission between the semiconductor memory and an external device on the condition that mutual authentication processing is established. The information recording medium 60 includes the recording medium authentication data reception unit 31, the first encryption unit 32, the encrypted data transmission unit 33, a random number generation unit 61, the random number transmission unit 35, the second encryption unit LO 36, the device authentication data reception unit 37, the authentication unit 38, the switch unit 41 and the authentication processing count unit 51.

[0160] Each time first medium authentication data is received from the medium authentication data reception unit 31 when the switch unit 41 is in the first state, the random number generation unit 61 judges whether the pseudo-execution count in the authentication processing count unit 51 has reached the predetermined number. When the predetermined number has been reached, the system informs the user that the predetermined number for mutual authentication processing in operation checking, debugging and the like during development of various types of software has been reached, and ends the processing.

[0161] When the predetermined number has not been reached, the random number generation unit 61 generates a predetermined initial value as a random number seed, uses the seed to generate a pseudo-random number which it supplies as a random number B (R_b), and updates the pseudo-execution count in the authentication processing count unit 51. When the switch unit 41 is in the second state, the random number generation unit 61 generates a random number for device authentication each time the information recording medium 60 is mounted in the connection device 20, before data is transmitted, and each time first medium authentication data is transmitted by the medium authentication data reception unit 31.

[0162] <Operations>

[0163]FIG. 10 shows mutual authentication processing operations in the data processing system of the fourth embodiment of the present invention in operation checking, debugging and the like.

[0164] The following describes operations for mutual authentication processing in operation checking, debugging and the like. Steps that are the same as those shown in FIG. 4 in the first embodiment have the same numbering thereas, and a description thereof is omitted.

[0165] (1) to (8) are the same as (1) to (8) in the first embodiment (steps S1 to S8).

[0166] (9) The random number generation unit 61 judges whether the switch unit 41 is in the first state or the second state (step S41).

[0167] (10) When the switch unit 41 is in the second state, the random number generation unit 61 generates a random number for use in device authentication, and subsequently performs normal operations (step S42).

[0168] (11) When the switch unit 41 is in the first state, the random number generation unit 61 judges whether the pseudo-execution count has reached the predetermined number or not (step S43).

[0169] (12) When the predetermined number has been reached, the system informs the user that the predetermined number has been reached, and ends the processing (step S44).

[0170] (13) When the predetermined number has not been reached, the random number generation unit 61 generates a random number B (R_b), and updates the pseudo-execution count in the authentication processing count unit 51 (step S45).

[0171] (14) to (20) are the same as (10) to (16) in the first embodiment (steps S10 to S16).

[0172] <Conclusion>

[0173] As described, according to the fourth embodiment of the present invention, by switching the switch the information recording medium 60 can be used for either operation checking, debugging and the like during development of various types of software, or for normal operations. Furthermore, the information recording medium 50 ends the processing when a predetermined the pseudo-execution count reaches the predetermined number. Therefore, the recording medium can prevent larger amounts of data being put into general, illegitimate use when the information recording medium is in a state for operation checking, debugging and the like.

[0174] Fifth Embodiment

[0175] <Outline>

[0176] In the system in the fifth embodiment of the present invention use of data is only permitted when the personal computer and the information recording medium authenticate each other as being legitimate by performing mutual authentication processing. Here, the personal computer and the memory card, instead of having programs for performing encryption processing in mutual authentication, store fixed authentication data and encrypted data that has been generated by encrypting the mutual authentication data, and use this data each time mutual authentication processing is performed.

[0177] <Structure>

[0178]FIG. 11 shows an outline of the data processing system of the fifth embodiment of the present invention. The constitutional elements that are the same as those in the first, embodiment have the same numbering thereas, and a description thereof is omitted.

[0179] The data processing system shown in FIG. 11 includes a data processing device 70, the connection device 20 and an information recording medium 80.

[0180] The data processing device 70 is, for example, a general-purpose computer such as a personal computer that executes software for checking operations, and includes the data storage unit 11, the medium authentication data transmission unit 12, a medium authentication data reception unit 71, an authentication unit 72, the device authentication data reception unit 15 and the device authentication data transmission unit 16.

[0181] The medium authentication data reception unit 71 is, for example, software in the personal computer such as a driver. The authentication unit 72 is, for example, application software that operates in the personal computer.

[0182] The information recording medium 80 is, for example, an SD memory card, and includes a semiconductor memory and a CPU. The information recording medium 80 is an intelligent memory card that includes a rights protection function that permits data transmission between the semiconductor memory and an external device on the condition that mutual authentication processing succeeds. The information recording medium 80 includes the recording medium authentication data reception unit 31, a data storage unit 81, a medium authentication data transmission unit 82, a device authentication data transmission unit 83, the device authentication data reception unit 37 and an authentication unit 84.

[0183] The medium authentication data reception unit 71 receives third medium authentication data (V″2) from the information recording medium 80.

[0184] The authentication unit 72 performs comparison processing (C_a) to compare the third medium authentication data (V″2) received by the medium authentication data reception unit 71 and the second medium authentication data (V′2) stored in the data storage area 11 and judge whether the two pieces of data are identical or not. When the two pieces of data are identical, the authentication unit 72 authenticates the information recording medium 80 as being legitimate. When the two pieces of data are not identical, the authentication unit 72 does not authenticate the information recording medium 80 as being legitimate, and the system informs the user that mutual device authentication failed, where the mutual authentication failed, and other information, then ends the processing.

[0185] The data storage unit 81 stores the third medium authentication data (V″2) that has been generated by applying predetermined encryption processing to first medium authentication data, first device authentication data, and third device authentication data (V″1) that has been generated by applying the predetermined encryption processing to the first device authentication data.

[0186] The first medium authentication data and the first device authentication data are each, for example, a 56 bit or a 64 bit random number. The predetermined encryption processing converts the 56 bit or 64 bit data to different 64 bit data. Since it is necessary to use a conversion method that cannot be analyzed from the original data and the data that results from conversion, an F function used in the DES decryption method is preferable because it is not reversible. Here, the first medium authentication data for operation checking, debugging and the like is referred to as random number A (R_a), and the first device authentication data for operation checking, debugging and the like is referred to as random number B (R_b).

[0187] On the medium authentication data reception unit 31 receiving a random number A (R_a) as first medium authentication data, the medium authentication data transmission unit 82 transmits the third medium authentication data (V″2) stored in the data storage unit 81 to the data processing device 70.

[0188] Each time a random number A (R_a) is received by the medium authentication data reception unit 31 as first medium authentication data, and on special command data being received from the data processing device according to the user inputting predetermined content into the data processing device 70, the device authentication data transmission unit 83 transmits the random number B (R_b) stored in the data storage unit 81 to the data processing device 70 as first device authentication data.

[0189] The authentication unit 84 uses comparison processing (C_b) to compare the second device authentication data (V1) received from the device authentication data reception unit 37 and the third device authentication data (V″1) stored in the data storage unit 81 and judge whether the two pieces of data are identical or not. When the two pieces of data are identical, the authentication unit 84 authenticates the data processing device 70 as being authentic, and permits subsequent use of data.

[0190] <Operations>

[0191]FIG. 12 shows the operations for mutual authentication processing during operation checking, debugging and the like, in the data processing system fifth embodiment of the present invention.

[0192] The following describes operations for mutual authentication processing during operation checking, debugging and the like. Steps that are the same as those shown in FIG. 4 in the first embodiment have the same numbering thereas, and a description thereof is omitted.

[0193] (1) to (3) are the same as (1) to (3) in the first embodiment (steps S1 to S3).

[0194] (4) The medium authentication data transmission unit 82 transmits the third medium authentication data (V″2) stored in the data storage unit 81 to the data processing device (step S51)

[0195] (5) The medium authentication data reception unit 71 receives the third medium authentication data (V″2) from the information recording medium (step S52).

[0196] (6) The authentication unit 72 compares the third medium authentication data (V″2) received by the medium authentication data reception unit 71 and the second medium authentication data stored in the data storage unit 11, and judges whether the two pieces of data are identical. When the two pieces of data are not identical, the system informs the user that mutual authentication processing failed, where the mutual authentication failed, and other information, then ends mutual authentication processing (step S53).

[0197] (7) When the two pieces of data are identical, the authentication unit 72 authenticates the information recording medium as being legitimate, and updates data stored in the storage unit 81, such as the pseudo-execution count and the mutual authentication processing result (step S54).

[0198] (8) The device authentication data transmission unit 83 transmits the random number B (R_b) stored in the data storage unit 81 to the data processing device (step S55).

[0199] (9) to (11) are the same as (12) to (14) in the first embodiment (steps S12 to S14).

[0200] (12) The authentication unit 84 compares the second device authentication data (V1) received by the device authentication data reception unit 37 and the third device authentication data (V″1) stored in the data storage unit 81, and judges whether the two pieces of data are identical. When the two pieces of data are not identical, the system informs the user that mutual authentication processing failed, where the mutual authentication failed, and other information, then ends mutual authentication processing (step S56).

[0201] (13) When the two pieces of data are identical, the authentication unit 84 authenticates the data processing device a being legitimate, and permits subsequent data use (step S57).

[0202] <Conclusion>

[0203] As described, in the data processing system of the fifth embodiment during operation checking, debugging and the like in development of various types of software, mutual authentication processing is performed using the same data each time, in other words, using the fixed authentication data and encrypted data stored by the data processing device, and using the fixed authentication data and encrypted data stored by the information recording medium 80. Therefore, developers of various types of software are able to check data transfer operations without risk of secret information being leaked.

[0204] Sixth Embodiment

[0205] <Outline>

[0206] Similar to the fifth embodiment, in the sixth embodiment the personal computer and the memory card, instead of having programs for performing encryption processing in mutual authentication, both store fixed authentication data and encrypted data that has been generated by encrypting the authentication data, and use this data each time mutual authentication processing is performed. In addition, the information recording medium stores a mutual authentication processing count, and restricts the number of times that the recording medium is used.

[0207] <Structure>

[0208]FIG. 13 shows an outline of the data processing system of the sixth embodiment of the present invention. The constitutional elements that are the same as those in the first embodiment have the same numbering thereas, and a description thereof is omitted.

[0209] The data processing system shown in FIG. 13 includes the data processing device 70, the connection device 20 and an information recording medium 90.

[0210] The information recording medium 90 is, for example, an SD memory card, and includes a semiconductor memory and a CPU. The information recording medium 90 is an intelligent memory card that includes a rights protection function that permits data transmission between the semiconductor memory and an external device on the condition that mutual authentication processing is established. The information recording medium 90 includes the medium authentication data reception unit 31, the data storage unit 81, the medium authentication data transmission unit 82, a device authentication data transmission unit 92, the device authentication data reception unit 37, the authentication unit 84 and an authentication processing count unit 91.

[0211] The authentication processing count unit 91 stores the pseudo-execution count for operation checking, debugging and the like during development of various types software.

[0212] Each time a random number A (R_a) is received by the medium authentication data reception unit 31 as first medium authentication data, and each time special command data is transmitted from the data processing device 70 according to the user inputting predetermined content into the data processing device 70, the device authentication data transmission unit 92 judges whether the pseudo-execution count stored by the authentication processing count unit 91 has reached a predetermined number. When the predetermined number has been reached, the system informs the user that the predetermined number for mutual authentication processing in operation checking, debugging and the like during development of various types of software has been reached, and ends the processing. When the predetermined number has not been reached, the device authentication data transmission unit 92 transmits the first device authentication data stored in the data storage unit 81 to the data processing device 70, and updates the pseudo-execution count in the authentication processing count unit 91.

[0213] Note that the pseudo-execution count stored in the authentication processing count unit 91 may be used without being reset until reaching the predetermined number. Alternatively, the pseudo-execution count may be reset at a predetermined time, such as when an information recording medium is mounted in the connection device 20, or may be reset according to particular command data transmitted from the data processing device.

[0214] For example, suppose that the pseudo-execution count is to be reset each time the information recording medium is mounted in the connection device or every time a file is accessed, and pseudo-execution is counted each time a data of one to two kilobytes is accessed. Here the predetermined number in the device authentication data transmission unit 92 needs to be at least 6 in order to include issuing of one write command in write processing and one read command in read processing for each of the head part, the intermediate part and the end part of the area for which operation checking, debugging and the like is to be performed. However, realistically it is appropriate to set the predetermined number to several tens of times, and preferably to a number that is less than the number of times necessary for mutual authentication for normal use of music data.

[0215] <Operations>

[0216]FIG. 14 shows mutual authentication processing operations in the data processing system of the sixth embodiment of the present invention during operation checking, debugging and the like.

[0217] The following describes operations for mutual authentication processing during operation checking, debugging and the like. Steps that are the same as those shown in FIG. 12 in the fifth embodiment have the same numbering thereas, and a description thereof is omitted.

[0218] (1) to (7) are the same as (1) to (7) in the fifth embodiment (steps S51 to S54).

[0219] (8) The device authentication data transmission unit 92 judges whether the pseudo-execution count in the authentication processing count unit 91 has reached the predetermined number or not (step S61).

[0220] (9) When the predetermined number has been reached, the system informs the user that the predetermined number has been reached, and ends the processing (step S62).

[0221] (10) When the predetermined number has not been reached, the device authentication data transmission unit 92 transmits the first device authentication data stored in the data storage unit 81 to the data processing device, and updates the pseudo-execution count in the authentication processing count unit 91 (step S63).

[0222] (11) to (15) are the same as (9) to (13) in the fifth embodiment (steps S12 to S14, S56 and S57).

[0223] <Conclusion>

[0224] As has been described, according to the sixth embodiment of the present invention, the information recording medium 90 has a pseudo-execution count, and ends the processing when the count has reached a predetermined number. Therefore, the recording medium can prevent larger amounts of data being put into illegal, general use when the information recording medium is in a state for operation checking, debugging and the like, by setting the predetermined number to a relatively small number.

[0225] Modifications

[0226] The following are possible modifications to the first to sixth embodiments.

[0227] The random number A may be a pseudo-random number generated by using a predetermined initial value as the seed. Here, instead of storing the random number A, the data storage unit 11 may pre-store a predetermined initial value which is used as the seed to generate a pseudo-random number, and the generated pseudo-random number provided as the random number A.

[0228] The random number B may be a predetermined random number, and instead of the random number generation unit generating a random number B (R_b), a predetermined random number B (R_b) may be stored in advance and provided as the random number B.

[0229] A plurality of random numbers A and random numbers B may be provided in advance and the random number A and the random number B selected from amongst the respective pluralities according to an authentication processing start command or special command data. Alternatively, sequential numbers such as 1, 2, 3, 4, 5, . . . , 56 may be used instead of random numbers, or numbers that are specified according to an authentication processing start command or a particular command may be used.

[0230] The user may input a password into the data processing device 10, and the mutual authentication processing operations for operation checking, debugging and the like started only when the password is correct.

[0231] Any of the embodiments of the present invention may be combined.

[0232] Note that a program that has a computer execute operations of any of the embodiments of the present invention may traded by being recorded on a computer-readable recording medium and the recording medium distributed, or by being directly transfer over a network.

[0233] Here, the computer-readable recording medium is not limited to being a particular type of recording medium, and may be for example a detachable recording medium such as floppy disk, a CD, an MO (magneto-optical), a DVD (digital versatile disk) or a memory card, or a fixed recording medium such as a hard disk or a semiconductor memory.

INDUSTRIAL APPLICABILITY

[0234] The present invention can be used by developers of various types of software for a memory card that performs mutual authentication processing, when checking data transfer, debugging and the like. According to the present invention, developers can perform operation checking, debugging and so on of data transfer while guarding secret information thoroughly, and without mutual authentication software having to be distributed. This reduces limitations on developers, and means that the present invention can be can be widely used by developers. 

1. A data processing system that includes a data processing device and a recording medium that perform mutual authentication, and permits transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the data processing device comprising: a medium authentication data storage unit operable to store first medium authentication data, and second medium authentication data generated by applying a predetermined encryption to the first medium authentication data; a medium authentication data transmission unit operable to transmit the first medium authentication data to the recording medium; an encrypted data reception unit operable to receive first encrypted data that has been generated by the recording medium by applying an encryption included in the recording medium to the transmitted first medium authentication data; a medium authentication unit operable to judge whether the received first encrypted data and the stored second medium authentication data are identical, and when the judgement is positive, authenticate the recording medium as being legitimate; a first device authentication data reception unit operable to receive first device authentication data from the recording medium; a device authentication data storage unit operable to store second device authentication data generated by applying the predetermined encryption to the first device authentication data; and a second device authentication data transmission unit operable, when the first device authentication data reception unit receives the first device authentication data, to transmit the stored second device authentication data to the recording medium, and the recording medium comprising: a medium authentication data reception unit operable to receive the first medium authentication data from the data processing device; a first encryption unit operable to generate the first encrypted data by applying the encryption included in the recording medium to the received first medium authentication data; an encrypted data transmission unit operable to transmit the generated first encrypted data to the data processing device; a device authentication data output unit operable to output the first device authentication data; a first device authentication data transmission unit operable to transmit the output first device authentication data to the data processing device; a second encryption unit operable to generate second encrypted data by applying the encryption to the output first device authentication data; a second device authentication data reception unit operable to receive the second device authentication data from the data processing device; and a device authentication unit operable to judge whether the received second device authentication data and the generated second encrypted data are identical, and when the judgement is positive, authenticate the data processing device as being legitimate.
 2. The data processing system of claim 1, wherein the recording medium further comprises: a counting unit operable to store a number of times that mutual authentication processing has been executed; and a usage count restriction unit operable to judge whether the number stored by the counting unit has reached a predetermined number, and, when the judgement is positive, stop mutual authentication processing and prohibit transfer of the useful data, and when the judgement is negative, have the mutual authentication processing continue.
 3. The data processing system of claim 2, wherein the recording medium is portable and is mounted in the data processing device by a user, and the counting unit resets the number each time the recording medium is mounted in the data processing device.
 4. The data processing system of claim 2, wherein the counting unit resets the number each time predetermined data is received from the data processing device.
 5. The data processing system of claim 1, wherein the recording medium is portable and is mounted in the data processing device by a user, and the device authentication data output unit outputs predetermined data as the first device authentication data each time the recording medium is mounted in the data processing device.
 6. The data processing system of claim 5, wherein the predetermined data is one of (a) a pseudo-random number that is generated using a predetermined initial value as a seed, (b) a predetermined random number, (c) a random number selected according to command data from the data processing device, (d) a number designated according to command data from the data processing device, and (e) a sequential number.
 7. The data processing system of claim 1, wherein the recording medium further comprises: a switch unit that is set to either a first state or a second state by a user, and the device authentication data output unit, when the switch unit is in the first state, outputs predetermined data as the first device authentication data, and when the switch unit is in the second state, outputs a random number each time as the first device authentication data, the random number being different each time.
 8. The data processing system of claim 7, wherein the predetermined data is one of (a) a pseudo-random number that is generated using a predetermined initial value as a seed, (b) a predetermined random number, (c) a random number selected according to command data from the data processing device, (d) a number designated according to command data from the data processing device, and (e) a sequential number.
 9. The data processing system of claim 1, wherein the device authentication data output unit outputs predetermined data as the first device authentication data each time predetermined data is received from the data processing device.
 10. The data processing system of claim 9, wherein the predetermined data is one of (a) a pseudo-random number that is generated using a predetermined initial value as a seed, (b) a predetermined random number, (c) a random number selected according to command data from the data processing device, (d) a number designated according to command data from the data processing device, and (e) a sequential number.
 11. A data processing system that includes a data processing device and a recording medium that perform mutual authentication, and permits transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the data processing device comprising: a first medium authentication data storage unit operable to store first medium authentication data, and second medium authentication data generated by applying a predetermined encryption to the first medium authentication data; a first medium authentication data transmission unit operable to transmit the first medium authentication data to the recording medium; a first medium authentication data reception unit operable to receive third medium authentication data generated by applying a predetermined encryption to the first medium authentication data from the recording medium; a medium authentication unit operable to judge whether the received third medium authentication data and the stored second medium authentication data are identical, and when the judgement is positive, authenticate the recording medium as being legitimate; a first device authentication data reception unit operable to receive first device authentication data from the recording medium; a first device authentication data storage unit operable to store second device authentication data generated by applying the predetermined encryption to the first device authentication data; and a second device authentication data transmission unit operable, when the first device authentication data reception unit receives the first device authentication data, to transmit the second device authentication data to the recording medium, and the recording medium comprising: a second medium authentication data reception unit operable to receive the first medium authentication data from the data processing device; a second medium authentication data storage unit operable to store the third authentication data; a second medium authentication data transmission unit operable, when the second medium authentication data reception unit receives the first medium authentication data, to transmit the third medium authentication data to the data processing device; a second device authentication data storage unit operable to store the first device authentication data, and third device authentication data that has been generated by applying the predetermined encryption to the first device authentication data; a first device authentication data transmission unit operable to transmit the stored first device authentication data to the data processing device; a second device authentication data reception unit operable to receive the second device authentication data from the data processing device; and a device authentication unit operable to judge whether the received second device authentication data and the stored third device authentication data are identical, and when the judgement is positive, authenticate the data processing device as being legitimate.
 12. The data processing system of claim 11, wherein the recording medium further comprises: a counting unit operable to store a number of times that mutual authentication processing has been executed; and a usage count restriction unit operable to judge whether the number stored by the counting unit has reached a predetermined number, and, when the judgement is positive, stop mutual authentication processing and prohibit transfer of the useful data, and when the judgement is negative, have the mutual authentication processing continue.
 13. The data processing system of claim 12, wherein the recording medium is portable and is mounted in the data processing device by a user, and the counting unit resets the number each time the recording medium is mounted in the data processing device.
 14. The data processing system of claim 12, wherein the counting unit resets the number each time predetermined data is received from the data processing device.
 15. The data processing system of claim 11, wherein the recording medium is portable and is mounted in the data processing device by a user, and the first device authentication data transmission unit transmits the stored first device authentication data to the data processing device each time the recording medium is mounted in the data processing device.
 16. The data processing system of claim 15, wherein the stored first device authentication data is one of (a) a pseudo-random number that is generated using a predetermined initial value as a seed, (b) a predetermined random number, (c) a random number selected according to command data from the data processing device, (d) a number designated according to command data from the data processing device, and (e) a sequential number.
 17. A data processing method that performs mutual authentication between a data processing device and a recording medium, and permits transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the data processing device comprising a medium authentication data storage unit operable to store first medium authentication data, and second medium authentication data generated by applying a predetermined encryption to the first medium authentication data; and a device authentication data storage unit operable to store second device authentication data generated by applying the predetermined encryption to first device authentication data, the data processing method comprising: a medium authentication data transfer step of transferring the first medium authentication data to the recording medium; a first encryption step of, in the recording medium, generating first encrypted data by applying an encryption included in the recording medium to the transferred first medium authentication data; an encrypted data transfer step of transferring the generated first encrypted data to the data processing device; a medium authentication step of, in the data processing device, judging whether the transferred first encrypted data and the stored second medium authentication data are identical, and when the judgement is positive, authenticating the recording medium as being legitimate; a device authentication data output step of, in the recording medium, outputting the first device authentication data; a first device authentication data transfer step of transferring the output first device authentication data to the data processing device; a second encryption step of, in the recording medium, generating second encrypted data by applying the encryption included in the recording medium to the output first device authentication data; a second device authentication data transfer step of, when the first device authentication data has been transferred by the first device authentication data transfer step, transferring the stored second device authentication data to the recording medium; and a device authentication step of, in the recording medium, judging whether the transferred second device authentication data and the generated second encrypted data are identical, and when the judgement is positive, authenticating the data processing device as being legitimate.
 18. A data processing method that performs mutual authentication between a data processing device and a recording medium, and permits transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the data processing device comprising a first medium authentication data storage unit operable to store first medium authentication data, and second medium authentication data generated by applying a predetermined encryption to the first medium authentication data; and a first device authentication data storage unit operable to store second device authentication data generated by applying the predetermined encryption to first device authentication data, the recording medium comprising a second medium data storage unit operable to store third medium authentication data generated by applying a predetermined encryption to the first medium authentication data; and a second device authentication data storage unit operable to store the first device authentication data, and third device authentication data generated by applying the predetermined encryption to the first device authentication data, the data processing method comprising: a first medium authentication data transfer step of transferring the stored first medium authentication data to the recording medium; a second medium authentication data transfer step of, when the first medium authentication data has been transferred, transferring the stored third medium authentication data to the data processing device; a medium authentication step of, in the data processing device, judging whether the transferred third medium authentication data and the stored second medium authentication data are identical, and when the judgement is positive, authenticating the recording medium as being legitimate; a first device authentication data transfer step of transferring the stored first device authentication data to the data processing device; a second device authentication data transfer step of, when the first device authentication data has been transferred, transferring the stored second device authentication data to the recording medium; and a device authentication step of, in the recording medium, judging whether the transferred second device authentication data and the stored third device authentication data are identical, and when the judgement is positive, authenticating the data processing device as being legitimate.
 19. A data processing device in a data processing system in which the data processing device and a recording medium perform mutual authentication, the data processing system permitting transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the data processing device comprising: a medium authentication data storage unit operable to store first medium authentication data, and second medium authentication data generated by applying a predetermined encryption to the first medium authentication data; a medium authentication data transmission unit operable to transmit the first medium authentication data to the recording medium; an encrypted data reception unit operable to receive first encrypted data that has been generated by the recording medium by applying an encryption included in the recording medium to the transmitted first medium authentication data; a medium authentication unit operable to judge whether the received first encrypted data and the stored second medium authentication data are identical, and when the judgement is positive, authenticate the recording medium as being legitimate; a first device authentication data reception unit operable to receive first device authentication data from the recording medium; a device authentication data storage unit operable to store second device authentication data generated by applying the predetermined encryption to the first device authentication data; and a second device authentication data transmission unit operable, when the first device authentication data reception unit receives the first device authentication data, to transmit the stored second device authentication data to the recording medium.
 20. A data processing device in a data processing system in which the data processing device and a recording medium perform mutual authentication, the data processing system permitting transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the data processing device comprising: a first medium authentication data storage unit operable to store first medium authentication data, and second medium authentication data generated by applying a predetermined encryption to the first medium authentication data; a first medium authentication data transmission unit operable to transmit the first medium authentication data to the recording medium; a first medium authentication data reception unit operable to receive third medium authentication data generated by applying a predetermined encryption to the first medium authentication data from the recording medium; a medium authentication unit operable to judge whether the received third medium authentication data and the stored second medium authentication data are identical, and when the judgement is positive, authenticate the recording medium as being legitimate; a first device authentication data reception unit operable to receive first device authentication data from the recording medium; a first device authentication data storage unit operable to store second device authentication data generated by applying the predetermined encryption to the first device authentication data; and a second device authentication data transmission unit operable, when the first device authentication data reception unit receives the first device authentication data, to transmit the second device authentication data to the recording medium.
 21. A data processing program that executes in a data processing device a data processing method by which the data processing device and a recording medium perform mutual authentication, the data processing method permitting transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the data processing device comprising a medium authentication data storage unit operable to store first medium authentication data, and second medium authentication data generated by applying a predetermined encryption to the first medium authentication data; and a device authentication data storage unit operable to store second device authentication data generated by applying the predetermined encryption to first device authentication data, the data processing program comprising: a medium authentication data transmission step of transmitting the first medium authentication data to the recording medium; an encrypted data reception step of receiving first encrypted data that has been generated by the recording medium by applying an encryption included in the recording medium to the transmitted first medium authentication data; a medium authentication step of judging whether the received first encrypted data and the stored second medium authentication data are identical, and when the judgement is positive, authenticating the recording medium as being legitimate; a first device authentication data reception step of receiving the first device authentication data from the recording medium; and a second device authentication data transmission step of, when the first device authentication data reception unit receives the first device authentication data, transmitting the stored second device authentication data to the recording medium.
 22. A data processing program that executes in a data processing device a data processing method by which the data processing device and a recording medium perform mutual authentication, the data processing method permitting transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the data processing device comprising a medium authentication data storage unit operable to store first medium authentication data, and second medium authentication data generated by applying a predetermined encryption to the first medium authentication data; and a device authentication data storage unit operable to store second device authentication data generated by applying the predetermined encryption to first device authentication data, the data processing program comprising: a first medium authentication data transmission step of transmitting the first medium authentication data to the recording medium; a first medium authentication data reception step of receiving third medium authentication data generated by applying a predetermined encryption to the first medium authentication data from the recording medium; a medium authentication step of judging whether the received third medium authentication data and the stored second medium authentication data are identical, and when the judgement is positive, authenticating the recording medium as being legitimate; a first device authentication data reception step of receiving the first device authentication data from the recording medium; and a second device authentication data transmission step of, when the first device authentication data reception unit receives the first device authentication data, transmitting the second device authentication data to the recording medium.
 23. A computer-readable program recording medium having recorded thereon a data processing program that executes on a computer a data processing method by which a data processing device and a recording medium perform mutual authentication, the data processing method permitting transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the data processing device comprising a medium authentication data storage unit operable to store first medium authentication data, and second medium authentication data generated by applying a predetermined encryption to the first medium authentication data; and a device authentication data storage unit operable to store second device authentication data generated by applying the predetermined encryption to first device authentication data, the data processing program comprising: a medium authentication data transmission step of transmitting the first medium authentication data to the recording medium; an encrypted data reception step of receiving first encrypted data that has been generated by the recording medium by applying an encryption included in the recording medium to the transmitted first medium authentication data; a medium authentication step of judging whether the received first encrypted data and the stored second medium authentication data are identical, and when the judgement is positive, authenticating the recording medium as being legitimate; a first device authentication data reception step of receiving the first device authentication data from the recording medium; and a second device authentication data transmission step of, when the first device authentication data reception unit receives the first device authentication data, transmitting the stored second device authentication data to the recording medium.
 24. A computer-readable program recording medium having recorded thereon a data processing program that executes on a computer a data processing method by which a data processing device and a recording medium perform mutual authentication, the data processing method permitting transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the data processing device comprising a medium authentication data storage unit operable to store first medium authentication data, and second medium authentication data generated by applying a predetermined encryption to the first medium authentication data; and a device authentication data storage unit operable to store second device authentication data generated by applying the predetermined encryption to first device authentication data, the data processing program comprising: a first medium authentication data transmission step of transmitting the first medium authentication data to the recording medium; a first medium authentication data reception step of receiving third medium authentication data generated by applying a predetermined encryption to the first medium authentication data from the recording medium; a medium authentication step of judging whether the received third medium authentication data and the stored second medium authentication data are identical, and when the judgement is positive, authenticating the recording medium as being legitimate; a first device authentication data reception step of receiving the first device authentication data from the recording medium; and a second device authentication data transmission step of, when the first device authentication data reception unit receives the first device authentication data, transmitting the second device authentication data to the recording medium.
 25. A recording medium in a data processing system in which a data processing device and the recording medium perform mutual authentication, the data processing system permitting transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the recording medium comprising: a medium authentication data reception unit operable to receive first medium authentication data from the data processing device; a first encryption unit operable to generate first encrypted data by applying encryption included in the recording medium to the received first medium authentication data; an encrypted data transmission unit operable to transmit the generated first encrypted data to the data processing device; a device authentication data output unit operable to output first device authentication data; a first device authentication data transmission unit operable to transmit the output first device authentication data to the data processing device; a second encryption unit operable to generate second encrypted data by applying the encryption to the output first device authentication data; a second device authentication data reception unit operable to receive second device authentication data from the data processing device; and a device authentication unit operable to judge whether the received second device authentication data and the generated second encrypted data are identical, and when the judgement is positive, authenticate the data processing device as being legitimate.
 26. A recording medium in a data processing system in which a data processing device and the recording medium perform mutual authentication, the data processing system permitting transfer of useful data only when the data processing device and the recording medium authenticate each other as being legitimate, the recording medium comprising: a second medium authentication data reception unit operable to receive first medium authentication data from the data processing device; a second medium authentication data storage unit operable to store third medium authentication data; a second medium authentication data transmission unit operable, when the second medium authentication data reception unit receives the first medium authentication data, to transmit the third medium authentication data to the data processing device; a second device authentication data storage unit operable to store first device authentication data, and third device authentication data that has been generated by applying the predetermined encryption to the first device authentication data; a first device authentication data transmission unit operable to transmit the stored first device authentication data to the data processing device; a second device authentication data reception unit operable to receive second device authentication data from the data processing device; and a device authentication unit operable to judge whether the received second device authentication data and the stored third device authentication data are identical, and when the judgement is positive, authenticate the data processing device as being legitimate. 